51 FOR I = 1 TO 19: READ PM(I,1),PM(I,2),PM(I,3): NEXT
52 DATA 0,2,2,2,0,2,2,2,0,0,3,3,3,0,3,3,3,0,4,4,0,1,1,1,3,2,1,3,1,2,2,3,1,2,1,3,1,2,3,1,3,2,5,4,1,1,0,0,0,1,0,0,0,1,0,0,0
60 FOR I = 1 TO 11: FOR J = 1 TO 8
61 READ HEAD(I,J): IF HEAD(I,J) >0 THEN HEAD(I,0) = HEAD(I,0) +1
62 NEXT J,I
63 DATA 2,5,4,0,0,0,0,0,1,4,5,6,3,0,0,0,2,5,6,0,0,0,0,0,1,2,5,8,7,10,0,0,1,2,3,4,6,7,8,9,3,2,5,8,9,11,0,0,4,5,8,0,0,0,0,0,7,4,5,6,9,0,0,0,8,5,6,0,0,0,0,0,4,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0
95 REM
96 REM
100 REM ***********************
101 REM ***
104 GOSUB 10000: REM *** INSTS
105 GOSUB 20000: REM *** SETUP
110 GOSUB 1000: REM *** PLAY
111 GOTO 105: REM ***
112 REM ***
113 REM ***********************
114 REM
995 REM
996 REM ***
997 REM *** PLAY THE GAME
998 REM ***
999 REM
1000 ON ( INT( RND(1) *5) >2) +1 GOSUB 2000,2025
1005 GOSUB 3000: REM KEYIN
1010 IF NMN >0 THEN 1000
1015 FOR I = 1 TO 1000: NEXT
1020 TEXT : HOME : VTAB 3: IF NOT MM THEN PRINT " <CTRL-G>I DON'T BELIEVE IT BUT YOU WON !!": PRINT "IT IS NOT EASY TO BEAT THE COMPUTER": PRINT "AT IT'S OWN GAME !!": GOTO 1030
1025 PRINT "<CTRL-G> WELL THE GAME IS OVER AND IT LOOKS": PRINT "LIKE YOU LOST... BUT DON'T WORRY, IT IS": PRINT "NOT EASY TO BEAT THE COMPUTER AT IT'S": PRINT "FAVORITE GAME !!"
1030 PRINT : PRINT : INPUT "DO YOU WISH TO PLAY AGAIN : ";ANS$: IF LEFT$(ANS$,1) = "Y" THEN RETURN
1040 HOME : PRINT "<CTRL-G>THANK-YOU FOR PLAYING NIMBOT !!": VTAB 20: END
10000 TEXT : HOME : VTAB 3: HTAB 17: PRINT "NIMBOT": VTAB 5: PRINT " THIS IS THE GAME OF NIM. THE OBJECT OF THE GAME IS THAT WHOEVER HAS TO KILL THE LAST ROBOT, LOSES. TO MAKE A MOVE, TYPE IN THE NUMBER OF THE ROW THAT YOU"
10010 PRINT "WISH TO SHOOT IN. THEN TYPE IN THE NUMBER OF ROBOTS THAT YOU WISH TO KILL. AFTER YOU GO, I WILL ALSO MAKE A MOVE, AND THEN IT WILL BE YOUR TURN AGAIN."
10015 PRINT : PRINT " SINCE I'M A KIND COMPUTER AND": PRINT "BASICALLY BIG HEARTED, I'LL EVEN LET YOU HAVE THE FIRST MOVE !!"
10020 PRINT : PRINT " BUT YOU'D BETTER BE CAREFUL, AS I'M VERY GOOD AT THIS GAME !!!": RETURN
19995 REM
19996 REM ***
19997 REM *** SET UP PER GAME
19998 REM ***
19999 REM
20000 COUNT = 0:NMN = 12:MMODE = 0
20040 FOR I = 1 TO 7: FOR J = 1 TO 3:ROBOT(I,J,1) = 5:ROBOT(I,J,2) = 15:ROBOT(I,J,3) = 17: NEXT J,I